package mop.gui.reservation;

import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import mop.controller.MakeResourceReservationController;
import mop.gui.GUI;
import mop.model.task.TaskInterface;

/**
 * MakeReservationAction
 * 
 * @author  MOP Team 7
 */
public class MakeReservationAction implements MouseListener
{
    private GUI gui;
    private MakeResourceReservationController makeResourceReservationController;
    private TaskInterface task;
    
    /**
     * Constructor.
     * 
     * @param   gui
     * @param   resource
     */
    public MakeReservationAction(GUI gui, MakeResourceReservationController makeResourceReservationController, TaskInterface task)
    {
        this.gui = gui;
        this.makeResourceReservationController = makeResourceReservationController;
        this.task = task;
    }

    public void mouseClicked(MouseEvent e)
    {
        (new MakeReservationDialog(gui, makeResourceReservationController, task)).setVisible(true);
    }

    public void mousePressed(MouseEvent e)
    {
    }

    public void mouseReleased(MouseEvent e)
    {
    }

    public void mouseEntered(MouseEvent e)
    {        
    }

    public void mouseExited(MouseEvent e)
    {
    }
}